//
//  PhotoUtil.m
//  photo_kit
//
//  Created by Bq Lin on 2020/9/10.
//

#import "PhotoUtil.h"

@interface PhotoUtil ()

@end


@implementation PhotoUtil

+ (NSDictionary *)dictionaryForPHAsset:(PHAsset *)asset {
    NSMutableDictionary *dic = NSMutableDictionary.dictionary;
    dic[kIdentity] = asset.localIdentifier ?: @"";
    dic[kWidth] = @(asset.pixelWidth);
    dic[kHeight] = @(asset.pixelHeight);
    
    return dic;
}

@end
